<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_CSS显示模式</title>
    <style>
        div {
            /*块级元素*/
            width: 100px;
            height: 100px;
            background-color: #0ff;
            display: inline;
        }
        span {
            /*行内元素*/
            width: 100px;
            height: 100px;
            background-color: red;
            border: 5px solid #0ff;
            display: block;
        }
        input,button{
            /*行内块元素*/
            width: 100px;
            height: 100px;

        }
        .d2:hover{
            display: none;
        }
    </style>
</head>
<body>
    <div class="d1">111</div>
    <div class="d2">222</div>
    <div class="d3">333</div>
    <hr>
    <span>123456789</span>
    <span>123456789</span>
    <span>123456789</span>
    <span>123456789</span>
    <hr>
    <input type="text">
    <button>按钮</button>
</body>
</html>